package com.hello

import akka.actor.Actor
import akka.actor.ActorSystem
import akka.actor.Props
class MyActor extends Actor{
  def receive = {
    case "A" => println("a");
    case m:Any => {
      println("you input "+m)
    }
  }
}
object BaseTest extends App{
  val system =  ActorSystem("basesytem")
  val actor = system.actorOf(Props[MyActor],"my")
  actor.tell("A", null)
  actor ! "AAAAA"
  

}